﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using FacebookAPI.FacebookProperties;

namespace FacebookAPI.Objects
{
    [DataContract]
    public class Message : FacebookBaseObject
    {
        [DataMember(Name = "created_time", EmitDefaultValue = true, IsRequired = false)]
        public string CreatedTime { get; set; }

        [DataMember(Name = "from", EmitDefaultValue = true, IsRequired = false)]
        public FacebookBaseObject From { get; set; }

        [DataMember(Name = "message", EmitDefaultValue = true, IsRequired = false)]
        public string PostedMessage { get; set; }

        [DataMember(Name = "to", EmitDefaultValue = true, IsRequired = false)]
        public FacebookList<FacebookBaseObject> To { get; set; }
    }
}
